﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            test1();
        }
        static void test1() { 

            yuan yuan = new yuan();
            Console.WriteLine("请输入半径");
            double r = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入宽");
            int c = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入长");
            int k = int.Parse(Console.ReadLine());
            Console.WriteLine("长方形长是{0}宽是{1}面积是{2}",k,c,yuan.Say(k,c));
            Console.WriteLine("圆形半径是{0}面积是{1}",r,yuan.Say(r));
        }
        static void test2() {

            yuangong yg = new yuangong();
            yg.gong = 1;
            yg.Name = "张三";
            yg.xinxi = "财务部";

            yg.yuangong();
            yg.yuangong(5,"木马","你觉得呢");



        }
        static void test3() {
            jisuanfangfa jfl = new jisuanfangfa();
            int a = jfl.add(1, 2);
            Console.WriteLine(a);
            double b = jfl.add(1.5, 2.7);
            Console.WriteLine(b);
            string c = jfl.add("呵呵", "喝喝");
            Console.WriteLine(c);
            int sum = jfl.add(5);
            Console.WriteLine(sum);


       
        }
        
    }
}
